package tinybase.pf;

import tinybase.basic.RedBase;

public class Pf {
	
	public static final int PF_PAGE_SIZE= 4096 - Integer.SIZE;
	
	public static final int PF_PAGEPINNED		= RedBase.START_PF_ERR + 0;
	public static final int PF_PAGENOTINBUF		= RedBase.START_PF_ERR + 1;
	public static final int PF_INVALIDPAGE		= RedBase.START_PF_ERR + 2;
	public static final int PF_FILEOPEN			= RedBase.START_PF_ERR + 3;
	public static final int PF_CLOSEDFILE		= RedBase.START_PF_ERR + 4;
	public static final int PF_PAGEFREE			= RedBase.START_PF_ERR + 5;
	public static final int PF_PAGEUNPINNED		= RedBase.START_PF_ERR + 6;
	public static final int PF_EOF				= RedBase.START_PF_ERR + 7;
	public static final int PF_TOOSMALL			= RedBase.START_PF_ERR + 8;
	public static final int PF_LASTWART			= PF_TOOSMALL;
	
	public static final int PF_NOMEM			= RedBase.START_PF_ERR - 0;
	public static final int PF_NOBUF			= RedBase.START_PF_ERR - 1;
	public static final int PF_INCOMPLETEREAD	= RedBase.START_PF_ERR - 2;
	public static final int PF_INCOMPLETEWRITE 	= RedBase.START_PF_ERR - 3;
	public static final int PF_HDRREAD			= RedBase.START_PF_ERR - 4;
	public static final int PF_HDRWRITE			= RedBase.START_PF_ERR - 5;
	
	public static final int PF_PAGEINBUF		= RedBase.START_PF_ERR - 6;
	public static final int PF_HASHNOTFOUND		= RedBase.START_PF_ERR - 7;
	public static final int PF_HASHPAGEEXIST	= RedBase.START_PF_ERR - 8;
	public static final int PF_INVALIDNAME 		= RedBase.START_PF_ERR - 9;
	public static final int PF_UNIX				= RedBase.START_PF_ERR - 10;
	public static final int PF_LASTERROR		= PF_UNIX;
}
